import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Home from '../views/Home.vue'
import Container from '../components/container/src/index.vue'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    component: Container,
    children: [
      {
        path: '/',
        name: 'home',
        component: Home,
      },
      {
        path: '/chooseIcon',
        name: 'choose-icon',
        component: () => import('../views/chooseIcon/index.vue'),
      },
      {
        path: '/chooseArea',
        name: 'choose-area',
        component: () => import('../views/chooseArea/index.vue'),
      },
      {
        path: '/calendar',
        name: 'calendar',
        component: () => import('../views/calendar/index.vue'),
      },
      {
        path: '/notification',
        name: 'notification',
        component: () => import('../views/notification/index.vue'),
      },
    ],
  },
]

const router = createRouter({
  routes,
  history: createWebHistory(),
})

export default router
